package com.joysuch.wwyt.bp.bean.contractor;

import cn.zlg.common.springmvc.validate.constraints.NotNull;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.time.LocalDate;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * 承包商评定
 *
 * @author sumeiqi
 * 2021-01-13
 */
@Data
public class BpContractorEvaluationBean {

    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("承包商表Id")
    private Long contractorId;
    @ApiModelProperty("标题")
    @NotNull(message = "标题不能为空")
    @Length(max = 64,message = "标题长度不超过{max}字符")
    private String name;
    @ApiModelProperty("考核部门id")
    private Long inspectionDepartId;
    @ApiModelProperty("考核部门名称")
    private String inspectionDepartName;
    @ApiModelProperty("考核日期")
    private LocalDate inspectionDate;
    @ApiModelProperty("总分")
    private String score;
    @ApiModelProperty("考核结果")
    private String inspectionResults;

}
